//
//  YXPhotoListTableViewCell.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXPhotoListTableViewCell.h"

@implementation YXPhotoListTableViewCell
@synthesize showImgVi,dateLab,deleteBtn;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor clearColor];
        showImgVi = [[UIImageView alloc] initWithFrame:CGRectMake(110, 10, 100, 100)];
        showImgVi.userInteractionEnabled = YES;
        showImgVi.backgroundColor = [UIColor redColor];
        [self addSubview:showImgVi];
        
        dateLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 80, 100, 20)];
        dateLab.font = [UIFont boldSystemFontOfSize:16];
        dateLab.textColor = [UIColor whiteColor];
        dateLab.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:.3];
        [showImgVi addSubview:dateLab];
        
        deleteBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        deleteBtn.frame = CGRectMake(75, 0, 25, 25);
        deleteBtn.backgroundColor = [UIColor blackColor];
        deleteBtn.layer.cornerRadius = 12.5;
        [showImgVi addSubview:deleteBtn];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
